﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">用户数据</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">修改用户</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
                                                 <li><a href="index.php?app=user&act=index"  target="mainframe">用户列表</a></li>				
                                                 <li><a href="index.php?app=user&act=add"  target="mainframe">添加用户</a></li>
				<li class="current"><a href="#" >修改用户</a></li>				
			
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">


	
<form  method="post" action="?app=user&act=pedit" >

<table  class="data" >
<tbody>
<tr >
	<td width="30%" >用户名称 :</td>
	<td><input type="text" maxlength="20" value="{$data.user_name}" name="data[username]" disabled="disabled"></td>
</tr>
<tr >
	<td >密码 :</td>
	<td><input type="password" maxlength="20" value="" name="data[password]"></td>
</tr>
<tr >
	<td >确认密码 :</td>
	<td><input type="password" maxlength="20" value="" name="data[check_passwd]"></td>
</tr>
<tr >
	<td >E-Mail :</td>
	<td><input type="text" maxlength="50" value="{$data.user_email}" name="data[email]"></td>
</tr>

<tr >
	<td >用户类型:</td>
	<td>
	<select name="data[user_type]">
		<option value="0"  >请选择用户类型....</option>
	
<?php foreach((array)$usertypedata as $_key => $_value ) { ?>
                                           
		<option value="{$_value.id}" <?php if ($_value.id==$data.user_type) { ?>selected <?php } ?> >{$_value.name}</option>
                
<?php } ?>
	
	</select>    
    </td>
</tr>


<tr >
	<td >用户组 :</td>
	<td>
	<select name="data[roleid]">
	
<?php foreach((array)$roledata as $_key => $_value ) { ?>
                                           
		<option value="{$_value.value}" <?php if ($_value.value==$data.role_id) { ?>selected <?php } ?> >{$_value.name}</option>
                
<?php } ?>
	
	</select>
	</td>
</tr>
<tr  >
	<td >用户状态 :</td>
	<td><input type="radio" value="1"  name="data[locked]" <?php if  ($data.locked==1) { ?>checked="checked" <?php } ?>><label for="lock">锁定</label>&nbsp;
	<input type="radio"  value="0"  name="data[locked]" <?php if ($data.locked==0) { ?>checked="checked" <?php } ?>><label for="open">启用</label></td>
</tr>
<tr  >
	<td >到期时间 :<br><span class="gray">如果值设置为0则不开启到期时间</span></td>
	<td>
    <phpscup:form type='time' size='20' name='data[due_time]' appname='' sxdata='' sxdatatype='' />    
    </td>
</tr>



                                 <!--PHPSCUP:START><tr >
	                                      <td><PHPSCUP:CONTENT_ICON></td>
	                                      <td>
	                                      <PHPSCUP:CONTENT_CODE>
	                                     </td>
                                 </tr><PHPSCUP:END--><!--PHPSCUP:DELSTART--><tr >
	                                      <td>性别</td>
	                                      <td>
	                                      <phpscup:form type='radio' value='男:男|女:女' checked='' id='' class='' name='data[my_sex]'  appname='user'  sxdata=''  sxdatatype=''  />
	                                     </td>
                                 </tr><tr >
	                                      <td>头像</td>
	                                      <td>
	                                      <phpscup:form type='ouppic' width='370' height='150' scrolling='no' frameborder='0' size='40' name='data[my_touxiang]'  appname='user'  sxdata=''  sxdatatype=''  />
	                                     </td>
                                 </tr><tr >
	                                      <td>描述</td>
	                                      <td>
	                                      <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[my_miaoshu]'  appname='user'  sxdata=''  sxdatatype=''  />
	                                     </td>
                                 </tr><!--PHPSCUP:DELEND-->




<tr>
	<td></td>
	<td><input name="data[id]" type="hidden" value="{$data.user_id}" /><input type="submit"  value=" 提 交 "  class="buton">&nbsp;&nbsp;<input type="button" value=" 返 回 " onClick="javascript:history.back();" class="buton"></td>
</tr>
</tbody></table>
</form> 	
	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span></div>
    </div>
</div>
<!--{inc(footer.view.html)}-->